package com.lvyq.model.user;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @program: weg
 * @description:
 * @author: lvyq
 * @create: 2023-03-07 15:11
 **/
@Data
@Document(collection = "user")
public class User {
    @Id
    private String id;

    /** 
    * @Description: 昵称
    */
    private String nickName;

    /**
     * openId
     */
    private String openId;

    /**
     * 爵位
     */
    private String juewei;

    /** 
    * @Description: 经验
    */
    private Integer jingyan;

    /**
     * @Description: 等级
     */
    private Integer dengJi;

    /**
     * @Description: 是否签到 false 否 true 是
     */
    private Boolean isSignIn;

    /**
     * @Description: 魅力
     */
    private Integer meili;

    /**
     * @Description: 金币
     */
    private Integer jinbi;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
